/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.server.modules.sys.entity.tag;

import org.hibernate.validator.constraints.Length;

import com.server.common.persistence.DataEntity;

/**
 * 标签Entity
 * @author 颜洪毅
 * @version 2016-08-17
 */
public class Tag extends DataEntity<Tag> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 名称
	private String typeId;		// 标签类型 -- 和贷款类型是一样的
	private String typeName;		// 标签类型名称 -- 和贷款类型是一样的
	public String getTypeName() {
		return typeName;
	}
	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public String getTypeId() {
		return typeId;
	}

	public void setTypeId(String typeId) {
		this.typeId = typeId;
	}

	public Tag() {
		super();
	}

	public Tag(String id){
		super(id);
	}

	@Length(min=1, max=255, message="名称长度必须介于 1 和 255 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
}